package db6;

public class SalesEmployee extends ColaEmployee{
    double monthsales;
    double rate;
    public SalesEmployee(String name,int bir,double monthsales,double rate){
        super(name,bir);
        this.monthsales=monthsales;
        this.rate=rate;
    }
    @Override
    public double getSalary(int month){
        double salary =0;
        salary=monthsales*rate;
        return salary;
    }
}
